package com.kee.server.manager.dao;

import java.sql.SQLException;
import java.util.Date;

import com.kee.server.dao.BaseDao;
import com.kee.server.manager.bean.ContentExt;

public class ContentExtDaoImpl extends BaseDao implements IContentExtDao {

	public void add(ContentExt ext) throws SQLException {
		sqlMapClientImport.insert("addContentExt", ext);
	}

	
	public static void main(String[] args) {
		ContentExtDaoImpl cx = new ContentExtDaoImpl();
		ContentExt ext = new ContentExt();
		ext.setContent_id(549);
		ext.setTitle("哈哈哈");
		ext.setDescription("这是一条内容的详情");
		ext.setRelease_date(new Date());
		ext.setNeed_regenerate(1);
		try {
			cx.add(ext);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
}
